{template 'common/header'}
{template 'nav'}
<div class="main">
<div class="panel panel-info">
	<div class="panel-heading">筛选</div>
	<div class="panel-body">
		<form action="./index.php" method="get" class="form-horizontal" role="form" id="form1">
			<input type="hidden" name="c" value="site" />
			<input type="hidden" name="a" value="entry" />
			<input type="hidden" name="m" value="meepo_begging" />
			<input type="hidden" name="do" value="look" />
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">昵称</label>
				<div class="col-sm-8 col-lg-9 col-xs-12">
					<input class="form-control" name="keyword" id="" type="text" value="{$_GPC['keyword']}" placeholder="可查询打赏">
				</div>
			</div> 
		</form>
	</div>
	</div>
<form action="" method="post" class="form-horizontal" role="form" ng-controller="formCtrl">
	<div class="panel panel-default">
		<div class="panel-body table-responsive">
			<table class="table table-hover">
				<thead class="navbar-inner">
					<tr>
					   <th style="width:25px;">选？</th>
						<th style="width:180px;">昵称</th>
						<th style="width:80px;">头像</th>
						<th style="width:140px;">打赏金钱</th>
						<th style="width:180px;">打赏时间</th>
					</tr>
				</thead>
				<tbody>
					<tr ng-repeat="item in list">
					   <td><input type="checkbox" ng-model="select" ng-value="{{item.id}}"></td>
						<td>{{item.nickname}}</td>
						<td><img src="{{item.avatar}}" style="width: 50px;border-radius: 25px;height: 50px;"></td>
						<td>{{item.money}}元</td>
						
						<td>{{item.createtime}}</td>
					</tr>
				</tbody>
				<tr>
					<td><input type="checkbox" onclick="var ck = this.checked;$(':checkbox').each(function(){this.checked = ck});"></td>
                    <td colspan="12">
                        <input type="submit" class="btn btn-danger" name="delete" value="删除" />
                        <input type="submit" class="btn btn-pramary" name="upload" value="导出数据" />
                    </td>
				</tr>
				<div ng-show="islook">
					查看打赏div
				</div>
			</table>
		</div>
	</div>
</form>
</div>
{$pager}

<script>
	require(['angular', 'jquery', 'util'], function(angular, $, util){

		var app = angular.module('app', []);
		app.controller('formCtrl', function($scope,$http){
			$scope.list = {php echo json_encode($list)};
		});
		angular.bootstrap(document, ['app']);
	});
</script>
{template 'common/footer'}